%% Author: kevin.jingqiu
%% Created: May 29, 2009
%% Description: TODO: Add description to p5
-module(p5).

%%
%% Include files
%%

%%
%% Exported Functions
%%
-export([solve/0]).

%%
%% API Functions
%%
solve() -> p5(2521, lists:reverse(lists:seq(11, 20))).



%%
%% Local Functions
%%


p5(Num, Divisors) ->
	case mylib:is_divisible_by_all(Num, Divisors) of
		true -> Num;
		false -> p5(Num+1, Divisors)
	end.

